package com.itheima.home_work.users;

public class Teacher extends User {
    public Teacher() {
        super();
        this.role = 0;
    }

    public Teacher(String name, String password) {
        super(name, password);
        this.role = 0;
    }

    @Override
    public void loginSuccess() {
        System.out.println("欢迎" + this.getName() + "老师进入系统.");
    }
}
